﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="AdminDepartments.aspx.cs" Inherits="AdminDepartments" %>

<%@ Register src="UserControls/admintree.ascx" tagname="admintree" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <span class="AdminTitle">
    BalloonShop Admin
    <br />
    Departments
    
  </span>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

  
    <asp:Label ID="statusLabel" runat="server" Text=""></asp:Label>
    <div>
       <uc1:admintree ID="admintree1" runat="server" />
       <</div>
   <div style="float: right"><p>
    <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" DataKeyNames="DepartmentID" ForeColor="Black" 
        GridLines="Vertical" onrowcancelingedit="grid_RowCancelingEdit" 
        onrowdeleting="grid_RowDeleting" onrowediting="grid_RowEditing" 
        onrowupdated="grid_RowUpdated" onrowupdating="grid_RowUpdating">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="Name" HeaderText="Department Name" 
                SortExpression="Name" />
            <asp:BoundField DataField="Description" HeaderText="Department Description" 
                SortExpression="Description" />
            <asp:HyperLinkField DataNavigateUrlFields="DepartmentID" 
                DataNavigateUrlFormatString="AdminCategories.aspx?DepartmentID={0}" 
                HeaderText="View Categories" Text="View Categories" />
            <asp:ButtonField CommandName="Delete" Text="del" />
            <asp:CommandField ShowEditButton="True" ShowSelectButton="True" ItemStyle-Wrap="False" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
  </p>
  <p>Create a new department:</p>
  <p>Name:</p>
  <asp:TextBox ID="newName" runat="server" Width="400px" />
  <p>Description:</p>
  <asp:TextBox ID="newDescription" runat="server" Width="400px" Height="70px" TextMode="MultiLine" />
  <p><asp:Button ID="createDepartment" Text="Create Department" runat="server" 
      onclick="createDepartment_Click" /></p></div> 
</asp:Content>

